package com.mhy.netsafe.base;

import android.app.DialogFragment;
import android.os.Bundle;

import com.mhy.netsafe.MyApplication;
import com.mhy.toast.ToastUtils;

/**
 * author    : mahongyin
 * e-mail    : mhy.work@qq.com
 * date      : 2019/6/15 14:04
 * introduce :
 */

public abstract class BaseDialogFragment extends DialogFragment {

    protected MyApplication mineApplication;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mineApplication = (MyApplication) getActivity().getApplication();
    }

    protected abstract void initData();

    protected abstract void initViews();

    protected void showToast(String message) {
        ToastUtils.show(message);
    }

}
